package com.chem.search.service;

import com.chem.search.entity.ShortPage;
import com.chem.search.params.ShortPageReq;
import org.springframework.data.domain.Page;
import org.springframework.data.elasticsearch.core.SearchHits;

/**
 * @author 权哥
 * @version 1.0
 * @date 2023/9/14 21:57
 */
public interface ShortPageService {

    /**
     * 加载数据到elasticSearch
     */
    void load();

    /**
     * 查询
     * @return
     */
    Page<ShortPage> search(String key);

    Page<ShortPage> searchQuery(ShortPageReq req);

    SearchHits searchOrFlag(ShortPageReq req);

}
